<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="indtemuserCss" jsFile="indtemuserBankJs" current="个人用户">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>新建个人用户银行信息
                    <small>新建个人用户银行信息界面</small>
                </h1>

            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
        	<li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">个人用户</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        基本信息</div>
                </div>
                <div class="portlet-body form edit-form">
                    <form action="#" class="horizontal-form createform" id="addInd" >

                            <input type="hidden" id="data_stauts"   name="data_stauts" value="DATA_NEW_ADD">
                            <input type="hidden" id="consumer_nature"   name="consumer_nature" value="PERSON">
                            <input type="hidden" id="data_status"  name="data_status" value="DATA_NEW_ADD">
                            <input type="hidden" id="consumer_id"  name="consumer_id" value="${consumerVO.id}">
                            <div class="form-body">
	                            <div class="alert alert-danger display-hide">
	                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查.
	                            </div>
	                            <div class="alert alert-success display-hide">
	                                <button class="close" data-close="alert"></button> 表单验证通过!
	                            </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">姓名</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="consumer_name" class="form-control" placeholder="★姓名" name="consumer_name" disabled value="${consumerVO.consumer_name}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">移动电话</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="mobile_tel"  class="form-control" placeholder="★移动电话" name="mobile_tel" disabled value="${consumerVO.mobile_tel}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                               <!--<h4 class="form-section">银行信息</h4>-->
                                <div class="portlet-title" style="border-bottom: 1px solid #eef1f5;padding: 0;min-height: 48px;margin-bottom: 29px;">
                                      <div class="caption" style="color: #666;padding: 10px 0;float: left;display: inline-block;font-size: 18px;line-height: 18px;">银行信息</div>
                                </div>
                                  <input type="hidden" id="consumer_id" name="consumer_id"  value="">
                                  <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">开户渠道</label>
                                                <div class="input-group-content">
                                                	<select class="form-control input-inline" id="channel_type" name="channel_type" >
										                <#if channel_type ?? >
					                                   		<option value="${channel_type.relation_string_num}">${channel_type
					                                   		.remark}</option>
					                                    </#if>
					                                     <#if channel_type == null>
	                                                	  	<option value="">★请选择</option>
					                                    	<#list type_list as type>
					                                    		<option value="${type.config_value}">${type.config_desc}</option>
										                    </#list>
										                 </#if>
					                                </select>
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <div class="input-group">
                                    <label class="input-group-addon">开户名称</label>
                                    <div class="input-group-content">
                                        <input type="text" id="bank_consumer_name"
                                               class="form-control" name="bank_consumer_name" placeholder="开户名称与姓名一致 "  readonly="readonly" value="${consumerVO.consumer_name}">
                                    </div>
                                </div>
                            </div>
                        </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">开户账号</label>
                                                    <div class="input-group-content">
                                                    	<input type="text" id="account_no" class="form-control" name="card_num" placeholder="★开户账号" >
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">开户行名称</label>
                                                <input type="hidden" id="cls_bank_name" name="cls_bank_name" class="form-control"
                                                       data-code=''>
                                                <div class="input-group-content">
                                                    <select name="cls_bank_code"  id="cls_bank_code" class="form-control">
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                     <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">开户支行省市</label>
                                                <input type="hidden" class="form-control" id="province_name" value=""
                                                data-code='' >
                                           		<input type="hidden" id="city_name" class="form-control"  value=""
                                           		data-code=''>
                                           		<div class="input-group-content">
	                                                <div class="col-md-6 plr0">
	                                                    <select name="province_code"  id="province_code" class="form-control input-inline">
	                                                    </select>
	                                                </div>
	                                                <div class="col-md-6 plr0">
	                                                    <select name="city_id"  id="city_code" class="form-control input-inline">

	                                                    </select>
	                                                </div>
	                                            </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">开户支行名称</label>
                                                <input type="hidden" id="brank_bank_name" class="form-control"  name="brank_bank_name"
                                                       value="" data-code=''>
                                                <div class="input-group-content">
                                                    <select  id="brank_bank_code" name="bank_id" class="form-control">

                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">账户性质</label>
                                                    <div class="input-group-content">
                                                        <select  id="account-type" readonly="readonly" class="form-control" name="consumer_type" placeholder="账户性质">
	                                                        <option value="PERSON" selected>个人户</option>
                                                        </select>
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                </div>

                           	</div>
                            <div class="form-actions top">
                                <div class="row" style="text-align:center;">
                                         <button type="submit" class="btn green" id="_indSaveUserBank">保存</button>
                                         <a  id="_indSaveBack" class="btn default">返回</a>
                                </div>
                            </div>
                    </form>
                </div>
                <div class="portlet-body plugin-special">
                        	<input type="hidden" name="id" id="recordId" value="${id}">
                            <table class="table table-striped table-bordered table-hover table-checkable order-column" id="huaXiaUserDetailbody">
                                <thead>
                                    <tr>
                                        <th> 开户名 </th>
                                        <th> 开户银行 </th>
                                        <th> 银行卡号 </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <#list bankList as bankMapVO>
									    <tr>
									        <td>${bankMapVO.bank_consumer_name}</td>
									        <td>${bankMapVO.cls_bank_name}</td>
									        <td>${bankMapVO.card_num}</td>
									    </tr>
									</#list>
                                </tbody>
                            </table>
                        </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->

</@page.mainTemplate>